projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9639f3d
)
[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
author
Tim Deegan
<Tim.Deegan@xensource.com>
Wed, 21 Mar 2007 17:17:08 +0000
(17:17 +0000)
committer
Tim Deegan
<Tim.Deegan@xensource.com>
Wed, 21 Mar 2007 17:17:08 +0000
(17:17 +0000)
otherwise the fast-path code is not safe against some kinds of
concurrent shadow updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen/arch/x86/mm/shadow/types.h
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/shadow/types.h
b/xen/arch/x86/mm/shadow/types.h
index 400514f2412d86290c146382de53eddff4bbc61b..8397e7ae2c06a4780cf15aa9c03f934d2b2a9d47 100644
(file)
--- a/
xen/arch/x86/mm/shadow/types.h
+++ b/
xen/arch/x86/mm/shadow/types.h
@@
-597,7
+597,7
@@
accumulate_guest_flags(struct vcpu *v, walk_t *gw)
* have reserved bits that we can use for this.
*/
-#define SH_L1E_MAGIC 0xffffffff0000000
0
ULL
+#define SH_L1E_MAGIC 0xffffffff0000000
1
ULL
static inline int sh_l1e_is_magic(shadow_l1e_t sl1e)
{
return ((sl1e.l1 & SH_L1E_MAGIC) == SH_L1E_MAGIC);